package com.framework.modules.live.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.common.utils.PageUtils;
import com.framework.common.utils.Query;
import com.framework.modules.live.dao.LiveViolationLogDao;
import com.framework.modules.live.entity.LiveViolationLogEntity;
import com.framework.modules.live.service.LiveViolationLogService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("liveViolationLogService")
public class LiveViolationLogServiceImpl extends ServiceImpl<LiveViolationLogDao, LiveViolationLogEntity> implements LiveViolationLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<LiveViolationLogEntity> page = this.selectPage(
                new Query<LiveViolationLogEntity>(params).getPage(),
                new EntityWrapper<LiveViolationLogEntity>()
        );

        return new PageUtils(page);
    }

}
